/*
 * Copyright 2008 Wink Saville
 * 
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 3
 * as published by the Free Software Foundation.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */

import java.lang.annotation.*;
import java.lang.reflect.*;
import com.saville.annx.*;
import com.saville.annx.test.*;
import com.saville.debug.*;

public class AnnxTest {

    /**
     * @param args
     */
    public static void main(String[] args) {
        Log.appName = "AnnxTest";
        
        new TestAnnx();
        new AnnxTest();
    }

    public AnnxTest() {
        Log.print("AnnxTest:");
        Method[] methods = this.getClass().getDeclaredMethods();
        for (Method m: methods) {
            Log.print("m=%s", m.getName());
            Annotation as[] = m.getAnnotations();
            for (Annotation a: as) {
                Log.print(" ann=%s", a.toString());
            }
        }
    }

    @annx
    public void annotated() {
    }
}
